package com.example.mapper;

import com.example.entity.SysResults;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SysResultMapper {

    @Select("select * from sys_result where student_name = #{studentName}")
    SysResults selectByName(String studentName);

    List<SysResults> selectAll(SysResults sysResults);

    void insert(SysResults sysResults);

    void update(SysResults sysResults);

    @Delete("delete from `sys_result` where student_id=#{studentId}")
    void delete(Integer id);

}
